﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
using UI_Layer.Pages;

namespace UI_Layer
{
    /// <summary>
    /// Interaction logic for PaymentOptionsPage.xaml
    /// </summary>
    public partial class PaymentOptionsPage : Page
    {
        public PaymentOptionsPage()
        {
            InitializeComponent();
            ShowsNavigationUI = false;
            DispatcherTimer timer = new DispatcherTimer(new TimeSpan(0, 0, 1), DispatcherPriority.Normal, delegate
            {
                this.OptionsPage_Clock.Content = DateTime.Now.ToString("HH:mm:ss");
            }, this.Dispatcher); 

            
        }

        private void ButtonClick_GoBack(object sender, RoutedEventArgs e)
        {
            NavigationService.GoBack();
        }

        private void ButtonClick_PayParking(object sender, RoutedEventArgs e)
        {
            BookingDetailsCreate BookingDetailsCreate = new Pages.BookingDetailsCreate();
            NavigationService navservice = NavigationService.GetNavigationService(this);
            navservice.Navigate(BookingDetailsCreate);
                    
        }

        private void ButtonClick_ViewBooking(object sender, RoutedEventArgs e)
        {
            TimeLeft timeleft = new TimeLeft();

            NavigationService navservice = NavigationService.GetNavigationService(this);
            navservice.Navigate(timeleft);   
        }

    }
}
